<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>参观记录</title>
    <style>
        .hidden {
            display: none;
        }
    </style>
</head>
<body>

    <h1>参观记录</h1>

    <!-- 按日期显示/隐藏的按钮 -->
    <div>
        <label><input type="checkbox" onchange="toggleRows('date1', this)"> 7.15</label>
        <label><input type="checkbox" onchange="toggleRows('date2', this)"> 7.16</label>
        <label><input type="checkbox" onchange="toggleRows('date3', this)"> 7.17</label>
        <label><input type="checkbox" onchange="toggleRows('date4', this)"> 7.18</label>
    </div>

    <!-- 合并后的表格 -->
    <table id="combined-table" border="1" width="100%" style="border-collapse:collapse;">
        <tr>
            <th>参观时间</th>
            <th>参观地点</th>
            <th>图片备注</th>
            <th>步数</th>
        </tr>
        <tr class="date1 hidden">

            <td>7.15上午</td>
            <td>深圳莲花山改革开放红色主题公园</td>
            <td>
                <img src="D:\epp232403-master\photo\莲花山.jpg" width="400">
            </td>
            <td rowspan="2">
                19186
            </td>
        </tr>
        <tr class="date1 hidden">

            <td>7.15下午</td>
            <td>飞马机器人总部</td>
            <td>
                <img src="D:\epp232403-master\photo\飞马.jpg" width="400">
            </td>
        </tr>
        <tr class="date2 hidden">
            <td>7.16上午</td>
            <td>大疆创新科技总部</td>
            <td>
                <img src="D:\epp232403-master\photo\大疆.jpg" width="400">
            </td>
            <td rowspan="2">13749</td>
        </tr>
        <tr class="date2 hidden">
            <td>7.16下午</td>
            <td>哈尔滨工业大学（深圳）空间科学与应用技术研究院</td>
            <td>
                <img src="D:\epp232403-master\photo\哈工深.jpg" width="400">
            </td>
        </tr>
        <tr class="date3 hidden">
            <td>7.17上午</td>
            <td>香港中文大学（深圳）理工学院</td>
            <td>
                <img src="D:\epp232403-master\photo\港中深.jpg" width="400">
            </td>
            <td>8316</td>
        </tr>
        <tr class="date4 hidden">
            <td>7.18上午</td>
            <td>深圳当代艺术与城市规划馆</td>
            <td>
                <img src="D:\epp232403-master\photo\艺术与城市规划博物馆.jpg" width="400">
            </td>
            <td>7597</td>
        </tr>
    </table>

    <script>
        function toggleRows(dateClass, checkbox) {
            var rows = document.getElementsByClassName(dateClass);
            for (var i = 0; i < rows.length; i++) {
                if (checkbox.checked) {
                    rows[i].classList.remove('hidden');
                } else {
                    rows[i].classList.add('hidden');
                }
            }
        }
    </script>

</body>
</html>